// WIP
//#define __DEBUG__
// by Xeno
#define THIS_FILE "fn_geardialog.sqf"
#include "x_setup.sqf"

enableRadio false;

xr_phd_invulnerable = true;

GVAR(gear_light) = "#lightpoint" createVehicleLocal (position player);
GVAR(gear_light) setLightBrightness 0.3;
GVAR(gear_light) setLightAmbient[0.2, 0.2, 0.2];
GVAR(gear_light) setLightColor[0.01, 0.01, 0.01];
GVAR(gear_light) lightAttachObject [player, [2,2,2]];

call FUNC(save_respawngear);

showCinemaBorder false;

player playMoveNow (if (primaryWeapon player == "") then {"amovpercmstpsnonwnondnon"} else {"amovpercmstpslowwrfldnon"});

GVAR(gear_cam) = "camera" camCreate (position player);
GVAR(gear_cam) cameraEffect ["INTERNAL", "Back"];
GVAR(gear_cam) camSetTarget (player modelToWorld [0,0,0.9]);
GVAR(gear_cam) camSetPos (player modelToWorld [3,4,2]);
GVAR(gear_cam) camSetFOV 0.27;
GVAR(gear_cam) camSetFocus [50, 0];
GVAR(gear_cam) camCommit 0;

createDialog QGVAR(GearDialog);